<template>
  <div class="page">
  <Headers :username="username" />
  <router-view />
  <Footer v-if="!$store.state.guidEdit"></Footer>

</div>
</template>

<script setup>
  import { ref } from 'vue';
  import { useStore } from 'vuex';
  import Headers from '@/components/Header/header.vue';
  import Footer from '@/components/Footer/index.vue';
  import { useRouter } from 'vue-router';
  const store = useStore();
  const router = useRouter();
  window.addEventListener('unhandledrejection', (event) => {
  console.log(event.reason);
});
const handleLogin = (credentials) => {
  console.log('登录信息:', credentials);
  // 处理登录逻辑，例如发送请求到服务器
};
</script>

<style scoped>
#app {
  font-family: Roboto, Helvetica, Arial, sans-serif;
}
.page{
  /* margin: 0px; */
/* position: absolute; */

}


</style>
